package com.yf.system.modules.utils.service.impl;


import com.yf.ability.demo.service.ProtectService;
import com.yf.system.modules.user.UserUtils;
import com.yf.system.modules.utils.mapper.ProtectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 数据保护的实现
 * @author bool
 */
@Service
public class ProtectServiceImpl implements ProtectService {

    @Autowired
    private ProtectMapper protectMapper;

    @Override
    public int countSystemData(String tableName, List<String> ids) {
        return protectMapper.countSysData(tableName, ids);
    }

    @Override
    public String currentUserId() {
        return UserUtils.getUserId();
    }

}
